package com.hypering.mobile.user;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    /**
     *编号
     */
    private Integer id;

    /**
     *帐号
     */
    private String code;

    /**
     *密码
     */
    private String pwd;

    /**
     *名称
     */
    private String name;

    /**
     *经度
     */
    private Float longitude;

    /**
     *纬度
     */
    private Float latitude;

    /**
     *入职日期
     */
    private Date entryday;

    /**
     *出生日期
     */
    private Date birthday;

    /**
     *状态，默认启用：0、不启用；1、启用；
     */
    private Integer status;

    /**
     *性别，默认为男：0、女；1、男；
     */
    private Integer sex;

    /**
     *职务，'0':'业代','2':'高级业代','1':'主管'
     */
    private Integer position;

    /**
     *手机号码
     */
    private String mobile;

    /**
     *绑定IMSI
     */
    private String imsi;

    /**
     *集团号码
     */
    private String groupnum;

    /**
     *区域ID串,分隔符为","
     */
    private String areaids;

    /**
     *固定电话
     */
    private String phone;

    /**
     *电子邮件
     */
    private String mail;

    /**
     *权限ID串,分隔符为","
     */
    private String roleids;

    /**
     *部门ID串,分隔符为","
     */
    private String deptids;

    /**
     *操作员编号
     */
    private Integer operator;

    /**
     *操作时间
     */
    private Date operatetime;

    /**
     *创建时间
     */
    private Date createtime;

    /**
     *修改密码时间
     */
    private Date modfiytime;

    /**
     *第一次密码错误时间
     */
    private Date firsterrortime;

    /**
     *密码错误时间
     */
    private Date errortime;

    /**
     *密码错误次数
     */
    private Integer errortimes;

    /**
     *最后一次推送数据的时间
     */
    private Date lastsynctime;

    /**
     *备注
     */
    private String memo;

    /**
     *mapabc经度
     */
    private Double mlongitude;

    /**
     *mapabc纬度
     */
    private Double mlatitude;

    /**
     *坐标是否转化
     */
    private String coorchange;

    /**
     *WEB端操作时间
     */
    private Date weboperatetime;

    /**
     *终端型号
     */
    private String osModel;

    /**
     *操作系统版本
     */
    private String osVersion;

    /**
     *app版本
     */
    private String appVersion;

    private static final long serialVersionUID = 1L;

    /**
     * @return  java.lang.Integer
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return  java.lang.String
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getPwd() {
        return pwd;
    }

    /**
     * @param pwd
     */
    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return  java.lang.Float
     */
    public Float getLongitude() {
        return longitude;
    }

    /**
     * @param longitude
     */
    public void setLongitude(Float longitude) {
        this.longitude = longitude;
    }

    /**
     * @return  java.lang.Float
     */
    public Float getLatitude() {
        return latitude;
    }

    /**
     * @param latitude
     */
    public void setLatitude(Float latitude) {
        this.latitude = latitude;
    }

    /**
     * @return  java.util.Date
     */
    public Date getEntryday() {
        return entryday;
    }

    /**
     * @param entryday
     */
    public void setEntryday(Date entryday) {
        this.entryday = entryday;
    }

    /**
     * @return  java.util.Date
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * @param birthday
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * @return  java.lang.Integer
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return  java.lang.Integer
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * @param sex
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * @return  java.lang.Integer
     */
    public Integer getPosition() {
        return position;
    }

    /**
     * @param position
     */
    public void setPosition(Integer position) {
        this.position = position;
    }

    /**
     * @return  java.lang.String
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * @param mobile
     */
    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getImsi() {
        return imsi;
    }

    /**
     * @param imsi
     */
    public void setImsi(String imsi) {
        this.imsi = imsi == null ? null : imsi.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getGroupnum() {
        return groupnum;
    }

    /**
     * @param groupnum
     */
    public void setGroupnum(String groupnum) {
        this.groupnum = groupnum == null ? null : groupnum.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getAreaids() {
        return areaids;
    }

    /**
     * @param areaids
     */
    public void setAreaids(String areaids) {
        this.areaids = areaids == null ? null : areaids.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getMail() {
        return mail;
    }

    /**
     * @param mail
     */
    public void setMail(String mail) {
        this.mail = mail == null ? null : mail.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getRoleids() {
        return roleids;
    }

    /**
     * @param roleids
     */
    public void setRoleids(String roleids) {
        this.roleids = roleids == null ? null : roleids.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getDeptids() {
        return deptids;
    }

    /**
     * @param deptids
     */
    public void setDeptids(String deptids) {
        this.deptids = deptids == null ? null : deptids.trim();
    }

    /**
     * @return  java.lang.Integer
     */
    public Integer getOperator() {
        return operator;
    }

    /**
     * @param operator
     */
    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    /**
     * @return  java.util.Date
     */
    public Date getOperatetime() {
        return operatetime;
    }

    /**
     * @param operatetime
     */
    public void setOperatetime(Date operatetime) {
        this.operatetime = operatetime;
    }

    /**
     * @return  java.util.Date
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * @param createtime
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /**
     * @return  java.util.Date
     */
    public Date getModfiytime() {
        return modfiytime;
    }

    /**
     * @param modfiytime
     */
    public void setModfiytime(Date modfiytime) {
        this.modfiytime = modfiytime;
    }

    /**
     * @return  java.util.Date
     */
    public Date getFirsterrortime() {
        return firsterrortime;
    }

    /**
     * @param firsterrortime
     */
    public void setFirsterrortime(Date firsterrortime) {
        this.firsterrortime = firsterrortime;
    }

    /**
     * @return  java.util.Date
     */
    public Date getErrortime() {
        return errortime;
    }

    /**
     * @param errortime
     */
    public void setErrortime(Date errortime) {
        this.errortime = errortime;
    }

    /**
     * @return  java.lang.Integer
     */
    public Integer getErrortimes() {
        return errortimes;
    }

    /**
     * @param errortimes
     */
    public void setErrortimes(Integer errortimes) {
        this.errortimes = errortimes;
    }

    /**
     * @return  java.util.Date
     */
    public Date getLastsynctime() {
        return lastsynctime;
    }

    /**
     * @param lastsynctime
     */
    public void setLastsynctime(Date lastsynctime) {
        this.lastsynctime = lastsynctime;
    }

    /**
     * @return  java.lang.String
     */
    public String getMemo() {
        return memo;
    }

    /**
     * @param memo
     */
    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    /**
     * @return  java.lang.Double
     */
    public Double getMlongitude() {
        return mlongitude;
    }

    /**
     * @param mlongitude
     */
    public void setMlongitude(Double mlongitude) {
        this.mlongitude = mlongitude;
    }

    /**
     * @return  java.lang.Double
     */
    public Double getMlatitude() {
        return mlatitude;
    }

    /**
     * @param mlatitude
     */
    public void setMlatitude(Double mlatitude) {
        this.mlatitude = mlatitude;
    }

    /**
     * @return  java.lang.String
     */
    public String getCoorchange() {
        return coorchange;
    }

    /**
     * @param coorchange
     */
    public void setCoorchange(String coorchange) {
        this.coorchange = coorchange == null ? null : coorchange.trim();
    }

    /**
     * @return  java.util.Date
     */
    public Date getWeboperatetime() {
        return weboperatetime;
    }

    /**
     * @param weboperatetime
     */
    public void setWeboperatetime(Date weboperatetime) {
        this.weboperatetime = weboperatetime;
    }

    /**
     * @return  java.lang.String
     */
    public String getOsModel() {
        return osModel;
    }

    /**
     * @param osModel
     */
    public void setOsModel(String osModel) {
        this.osModel = osModel == null ? null : osModel.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getOsVersion() {
        return osVersion;
    }

    /**
     * @param osVersion
     */
    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion == null ? null : osVersion.trim();
    }

    /**
     * @return  java.lang.String
     */
    public String getAppVersion() {
        return appVersion;
    }

    /**
     * @param appVersion
     */
    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion == null ? null : appVersion.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getEntryday() == null ? other.getEntryday() == null : this.getEntryday().equals(other.getEntryday()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getImsi() == null ? other.getImsi() == null : this.getImsi().equals(other.getImsi()))
            && (this.getGroupnum() == null ? other.getGroupnum() == null : this.getGroupnum().equals(other.getGroupnum()))
            && (this.getAreaids() == null ? other.getAreaids() == null : this.getAreaids().equals(other.getAreaids()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getMail() == null ? other.getMail() == null : this.getMail().equals(other.getMail()))
            && (this.getRoleids() == null ? other.getRoleids() == null : this.getRoleids().equals(other.getRoleids()))
            && (this.getDeptids() == null ? other.getDeptids() == null : this.getDeptids().equals(other.getDeptids()))
            && (this.getOperator() == null ? other.getOperator() == null : this.getOperator().equals(other.getOperator()))
            && (this.getOperatetime() == null ? other.getOperatetime() == null : this.getOperatetime().equals(other.getOperatetime()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getModfiytime() == null ? other.getModfiytime() == null : this.getModfiytime().equals(other.getModfiytime()))
            && (this.getFirsterrortime() == null ? other.getFirsterrortime() == null : this.getFirsterrortime().equals(other.getFirsterrortime()))
            && (this.getErrortime() == null ? other.getErrortime() == null : this.getErrortime().equals(other.getErrortime()))
            && (this.getErrortimes() == null ? other.getErrortimes() == null : this.getErrortimes().equals(other.getErrortimes()))
            && (this.getLastsynctime() == null ? other.getLastsynctime() == null : this.getLastsynctime().equals(other.getLastsynctime()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()))
            && (this.getMlongitude() == null ? other.getMlongitude() == null : this.getMlongitude().equals(other.getMlongitude()))
            && (this.getMlatitude() == null ? other.getMlatitude() == null : this.getMlatitude().equals(other.getMlatitude()))
            && (this.getCoorchange() == null ? other.getCoorchange() == null : this.getCoorchange().equals(other.getCoorchange()))
            && (this.getWeboperatetime() == null ? other.getWeboperatetime() == null : this.getWeboperatetime().equals(other.getWeboperatetime()))
            && (this.getOsModel() == null ? other.getOsModel() == null : this.getOsModel().equals(other.getOsModel()))
            && (this.getOsVersion() == null ? other.getOsVersion() == null : this.getOsVersion().equals(other.getOsVersion()))
            && (this.getAppVersion() == null ? other.getAppVersion() == null : this.getAppVersion().equals(other.getAppVersion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getEntryday() == null) ? 0 : getEntryday().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getImsi() == null) ? 0 : getImsi().hashCode());
        result = prime * result + ((getGroupnum() == null) ? 0 : getGroupnum().hashCode());
        result = prime * result + ((getAreaids() == null) ? 0 : getAreaids().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMail() == null) ? 0 : getMail().hashCode());
        result = prime * result + ((getRoleids() == null) ? 0 : getRoleids().hashCode());
        result = prime * result + ((getDeptids() == null) ? 0 : getDeptids().hashCode());
        result = prime * result + ((getOperator() == null) ? 0 : getOperator().hashCode());
        result = prime * result + ((getOperatetime() == null) ? 0 : getOperatetime().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getModfiytime() == null) ? 0 : getModfiytime().hashCode());
        result = prime * result + ((getFirsterrortime() == null) ? 0 : getFirsterrortime().hashCode());
        result = prime * result + ((getErrortime() == null) ? 0 : getErrortime().hashCode());
        result = prime * result + ((getErrortimes() == null) ? 0 : getErrortimes().hashCode());
        result = prime * result + ((getLastsynctime() == null) ? 0 : getLastsynctime().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        result = prime * result + ((getMlongitude() == null) ? 0 : getMlongitude().hashCode());
        result = prime * result + ((getMlatitude() == null) ? 0 : getMlatitude().hashCode());
        result = prime * result + ((getCoorchange() == null) ? 0 : getCoorchange().hashCode());
        result = prime * result + ((getWeboperatetime() == null) ? 0 : getWeboperatetime().hashCode());
        result = prime * result + ((getOsModel() == null) ? 0 : getOsModel().hashCode());
        result = prime * result + ((getOsVersion() == null) ? 0 : getOsVersion().hashCode());
        result = prime * result + ((getAppVersion() == null) ? 0 : getAppVersion().hashCode());
        return result;
    }
}